package com.system.comm.utils.excel;

import org.apache.poi.ss.usermodel.CellType;
import org.apache.poi.ss.usermodel.HorizontalAlignment;

/**
 * Excel的单元格
 * @author yuejing
 * @date 2019年11月28日 上午9:17:13
 */
public class ExcelCell {

	/** 值 */
	private Object value;
	/** 跨列 */
	private Integer colSpan;
	/** 排序 */
	private HorizontalAlignment align;
	/** 类型 */
	private CellType cellType;
	/** 字体大小 */
	private Short fontSize;
	/** 字体加粗 */
	private Boolean bold;
	
	public ExcelCell(Object value) {
		super();
		this.value = value;
		this.colSpan = 1;
	}
	public ExcelCell(Object value, Short fontSize) {
		super();
		this.value = value;
		this.fontSize = fontSize;
		this.colSpan = 1;
	}
	public ExcelCell(Object value, Integer colSpan) {
		super();
		this.value = value;
		this.colSpan = colSpan;
	}
	public ExcelCell(Object value, Integer colSpan, Short fontSize) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.fontSize = fontSize;
	}
	public ExcelCell(Object value, Integer colSpan, Short fontSize, Boolean bold) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.fontSize = fontSize;
		this.bold = bold;
	}
	public ExcelCell(Object value, CellType cellType) {
		super();
		this.value = value;
		this.cellType = cellType;
	}
	public ExcelCell(Object value, Integer colSpan, HorizontalAlignment align) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.align = align;
	}
	public ExcelCell(Object value, Integer colSpan, CellType cellType) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.cellType = cellType;
	}
	public ExcelCell(Object value, Integer colSpan, HorizontalAlignment align, CellType cellType) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.align = align;
		this.cellType = cellType;
	}
	public ExcelCell(Object value, Integer colSpan, HorizontalAlignment align, CellType cellType, Short fontSize) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.align = align;
		this.cellType = cellType;
		this.fontSize = fontSize;
	}
	public ExcelCell(Object value, Integer colSpan, HorizontalAlignment align, CellType cellType, Short fontSize, Boolean bold) {
		super();
		this.value = value;
		this.colSpan = colSpan;
		this.align = align;
		this.cellType = cellType;
		this.fontSize = fontSize;
		this.bold = bold;
	}
	public Object getValue() {
		return value;
	}
	public void setValue(Object value) {
		this.value = value;
	}
	public Integer getColSpan() {
		return colSpan;
	}
	public void setColSpan(Integer colSpan) {
		this.colSpan = colSpan;
	}
	public HorizontalAlignment getAlign() {
		return align;
	}
	public void setAlign(HorizontalAlignment align) {
		this.align = align;
	}
	public CellType getCellType() {
		return cellType;
	}
	public void setCellType(CellType cellType) {
		this.cellType = cellType;
	}
	public Short getFontSize() {
		return fontSize;
	}
	public void setFontSize(Short fontSize) {
		this.fontSize = fontSize;
	}
	public Boolean getBold() {
		return bold;
	}
	public void setBold(Boolean bold) {
		this.bold = bold;
	}
}